BIN=test 
SRC=$(wildcard *.c)
CC=gcc
OBJ=$(SRC:.c=.o)
RM=rm -rf

$(BIN):$(OBJ)
	@echo "start"
	@$(CC)  -o  $@  $^ 
	@echo "end"

%.o:%.c
	@echo "start"
	@$(CC) -c $< -g
	@echo "end"

.PHONY:clean

clean:
	@echo  "clearn"
	$(RM) $(OBJ) $(BIN)
	@echo "end"
	
.PHONY:test1    
test1:
	@echo $(SRC)     
	@echo $(OBJ)

